home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT Memory 1.xpl < prev    next >
Text File  |  2004-04-08  |  3KB  |  90 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="System\Memory"
  5. "NAME"="Memory Settings"
  6. "VERSION"="2.17"
  7. "LANGUAGE"="VBScript"
  8. "OSVERSION"="0101011"
  9. "WARNING"="1"
  10. "TEXT 1"="Use large system cache"
  11. "TEXT 2"="Allow paging of kernel"
  12. "TEXT 3"="Execute 16bit Applications Separated"
  13. "DESCRIPTION 1"="OPTION #1: Windows NT Server uses a large system cache while NT Workstation does not. If you have NT Workstation and enough RAM, you should try enabling this feature and see if your computer works faster. You can always change it later."
  14. "DESCRIPTION 2"="OPTION #2: Windows NT is allowed to page parts of its kernel (the heart of Windows). This only happens if a lot of programs are opened, but it will slow down your system badly. For maximum performance, you should deactivate this option."
  15. "DESCRIPTION 3"="NOTE: Do not deactivate this option if you want to use standby power functions (Hibernate etc.)!
  16. "DESCRIPTION 4"="OPTION #3: By default, all 16bit applications are run in the same memory-space of Windows. If one of these applications crashes badly, it can happen that it's the end of all other 16bit applications also. To prevent this, every 16bit application can be run in it's own process. This requires more memory, but it's safer."
  17. "DESCRIPTION 5"="Important Note:  If you are having 16-bit applications run in separate memory processes, only one 16-bit program can access 16-bit DLLs that are normally shared at a time.  This may result in crashes or errors in some 16-bit programs if they try accessing as 16-bit DLL which is already being used by another 16-bit application. However, generally this is not a concern as 16-bit applications seldom require use of the same 16-bit DLL files at the same time."
  18. "AUTHOR"="Xteq Systems"
  19. "CONTACTURL"="http://www.xteq.com"
  20. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  21. "COMMENT 2"="Thanks to Darren Carter, MD [dc312@columbia.edu] for the power function tip!"
  22.  
  23.  
  24. sPath1="HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management\"
  25. sValue1="LargeSystemCache"
  26. sValue2="DisablePagingExecutive"
  27.  
  28. sPath3="HKLM\System\CurrentControlSet\Control\WOW\"
  29. sValue3="DefaultSeparateVDM"
  30.  
  31. Sub Plugin_Initialize 
  32.  if RegPathExists(sPath1) then
  33.  
  34.   i=RegReadValue(sPath1 & sValue1)
  35.   if i=0 then 
  36.    Call SetUIElement(1,false)
  37.   else
  38.    Call SetUIElement(1,true)
  39.   end if
  40.  
  41.   l=RegReadValue(sPath1 & sValue2)
  42.   if l=0 then
  43.    Call SetUIElement(2,True)
  44.   else
  45.    Call SetUIElement(2,False)   
  46.   end if
  47.  
  48.   s=RegReadValue(sPath3 & sValue3)
  49.   if s="yes" then
  50.      Call SetUIElement(3,True)
  51.   else
  52.      Call SetUIElement(3,False)   
  53.   end if
  54.  
  55.  
  56.  else
  57.    Disable
  58.  end if
  59. End Sub
  60.  
  61. Sub Plugin_CheckData(ElementIndex)
  62. End Sub
  63.  
  64. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  65.  i=GetUIElement(1)
  66.  if i=True then
  67.     Call RegWriteValue(sPath1 & sValue1,1,2)
  68.  else
  69.     Call RegWriteValue(sPath1 & sValue1,0,2)
  70.  end if
  71.  
  72.  if GetUIElement(2)=true then
  73.     Call RegWriteValue(sPath1 & sValue2,0,2)
  74.  else
  75.     Call RegWriteValue(sPath1 & sValue2,1,2)
  76.  end if
  77.  
  78.  if GetUIElement(3)=true then
  79.     Call RegWriteValue(sPath3 & sValue3,"yes",1)
  80.  else
  81.     Call RegWriteValue(sPath3 & sValue3,"no",1)
  82.  end if
  83.  
  84.  
  85.  Call Restart
  86. End Sub
  87.  
  88. Sub Plugin_Terminate 
  89. End Sub
  90.